<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSystemSettingTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('system_setting', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('parent_id')->default('0')->comment('级别');
            $table->string('title')->default('')->comment('标题');
            $table->string('input_type')->default('')->comment('类型');
            $table->string('value')->default('')->comment('值');
            $table->string('remake')->default('')->comment('备注');
            $table->timestamp('create_at')->nullable()->comment('创建');
            $table->timestamp('update_at')->nullable()->comment('更新');
            $table->timestamp('delete_at')->nullable()->comment('删除');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('system_setting');
    }
}
